package br.com.infoanalise.jsf.pety.managedbean;

import java.io.Serializable;
import java.util.Date;

import javax.inject.Inject;
import javax.inject.Named;

@Named
public class TesteMBean implements Serializable {

	private static final long serialVersionUID = 1L;

	private String nome = "Fabiano Fernandes & Meryelle Melo";

	private String string = "";

	@Inject
	private TesteService service;

	private Date date;

	public Date getDate() {
		return date;
	}

	public void setDate(Date date) {
		this.date = date;
	}

	public String getString() {
		return string;
	}

	public void setString(String string) {
		this.string = string;
	}

	public String getReverseString() {
		return service.reverse(string);
	}

	public String getNome() {
		return nome;
	}

}
